//
//  ThemeViewController.m
//  FlowerRainGround
//
//  Created by zfc on 16/4/25.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "ThemeViewController.h"
#import "CircleModel.h"
@interface ThemeViewController ()

@property (weak, nonatomic) IBOutlet UIWebView *webView;
@property (nonatomic, strong)CircleModel *model;

@end

@implementation ThemeViewController



- (void)handleData {
    
    
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://m.htxq.net/servlet/SysActivityServlet?action=preview&actId=%@", self.model.url]]];
    [self.webView loadRequest:request];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    
    _model = self.circleArray[_pageIndex];
    NSLog(@"%@",_model.url);
    [self handleData];
    
    // Do any additional setup after loading the view from its nib.
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
